<template>
  <div>
    <h2>{{ this.data.bankName }}</h2>
    <p v-for="(item, index) in this.data.policies" :key="index">
      {{ item }}
    </p>
    <van-button round type="primary" @click="onClick">
      贷款计算器
    </van-button>
  </div>
</template>
<script>
export default {
  name: "Answer",
  props: {
    data: Object
  },
  inject: ["changeStep"],
  methods: {
    onClick() {
      this.changeStep(4, this.data);
    }
  }
};
</script>
<style>
p {
  word-break: break-word;
}
</style>
